<script type="text/javascript">
// 定义公共的属性
let httpUrl = process.env.VUE_APP_BASE_API//本地地址
// const httpUrl = 'http://localhost:8089'//本地地址
if (window.location.host.indexOf('192.168') > -1 || window.location.host.indexOf('localhost') > -1) {
    //判断是内网地址的话，就请求内网后端接口地址
    httpUrl = process.env.VUE_APP_BASE_API;
} else {
    //判断是外网地址的话，就请求外网后端接口地址
    httpUrl = process.env.VUE_APP_BASE_API_WWW;
}
// 暴露属性
export default {
    httpUrl
}
</script>